package com.qfedu.zf.index.controller;


import com.qfedu.zf.common.vo.R;
import com.qfedu.zf.index.service.ReportService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wgz
 * @since 2024-06-20
 */
@RestController
@RequestMapping("/index/report")
public class ReportController {

    @Autowired
    ReportService reportService;

    @RequestMapping("/add")
    public R add(@RequestParam("info") String info, @RequestParam("userId") Integer userId, HttpServletRequest request) {
        return reportService.add(info,userId,request);
    }

}

